... string:v9G-nxfz3iQGTXrePqYPlGvH79WTcIgj1QIQSUODTW0' 署名が文字列の最後にコロンに続いて付加されます。元の値を取得するには、 unsign メソッドを使用します。 >>> original = signer . unsign ( value ) >>> original 'My string' もし sign に文字列でない値を渡すと ... 、その値は署名される前に強制的に文字列に変換され、 unsign の結果にはその文字列の値が返されます。 >>> signed = signer . sign ( 2.5 ) >>> original = signer . unsign ( signed ) >>> or ... iginal '2.5' リスト、タプル、辞書を保護したい場合は 、 sign_object() と unsign_object() メソッドを使います。 >>> signed_obj = signer . sign_object ({ "message" : "Hello!" }) >>> signed_obj 'eyJtZXNzYWd ... ... string:v9G-nxfz3iQGTXrePqYPlGvH79WTcIgj1QIQSUODTW0' 署名が文字列の最後にコロンに続いて付加されます。元の値を取得するには、 unsign メソッドを使用します。 >>> original = signer . unsign ( value ) >>> original 'My string' もし sign に文字列でない値を渡すと ... 、その値は署名される前に強制的に文字列に変換され、 unsign の結果にはその文字列の値が返されます。 >>> signed = signer . sign ( 2.5 ) >>> original = signer . unsign ( signed ) >>> or ... iginal '2.5' リスト、タプル、辞書を保護したい場合は 、 sign_object() と unsign_object() メソッドを使います。 >>> signed_obj = signer . sign_object ({ "message" : "Hello!" }) >>> signed_obj 'eyJtZXNzYWd ... ... on to access settings.SECRET_KEY will now raise an ImproperlyConfigured exception. The new Signer.sign_object() and Signer.unsign_object() methods allow signing complex data structures. See 複雑なデータ構造の保護 for more details. Also, signing.dumps() ... and loads() become shortcuts for TimestampSigner.sign_object() and unsign_object() . シリアライズ (シリアル化) ¶ The new JSONL serializer allows using the JSON Lines format with dumpdata and loadd ... ... on to access settings.SECRET_KEY will now raise an ImproperlyConfigured exception. The new Signer.sign_object() and Signer.unsign_object() methods allow signing complex data structures. See 複雑なデータ構造の保護 for more details. Also, signing.dumps() ... and loads() become shortcuts for TimestampSigner.sign_object() and unsign_object() . シリアライズ (シリアル化) ¶ The new JSONL serializer allows using the JSON Lines format with dumpdata and loadd ... ... em.LocMemCache backend is now thread-safe. Cryptography ¶ The max_age parameter of the django.core.signing.TimestampSigner.unsign() method now also accepts a datetime.timedelta object. データベースバックエンド ¶ The MySQL backend no longer strips micro ... ... em.LocMemCache backend is now thread-safe. Cryptography ¶ The max_age parameter of the django.core.signing.TimestampSigner.unsign() method now also accepts a datetime.timedelta object. データベースバックエンド ¶ The MySQL backend no longer strips micro ... 2026年10月08日