diff options
Diffstat (limited to 'test/doctest_securecookies.txt')
-rw-r--r-- | test/doctest_securecookies.txt | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/doctest_securecookies.txt b/test/doctest_securecookies.txt deleted file mode 100644 index c955c6f..0000000 --- a/test/doctest_securecookies.txt +++ /dev/null @@ -1,14 +0,0 @@ -Secure cookies are signed, but not encrypted. They support pickle-able objects as values. - - >>> import bottle - >>> test = dict(a=5, b=u'unicode', c=[1,2,3,4,'5']) - >>> key = 'secret' - >>> cookie = bottle.cookie_encode(test, key) - >>> cookie - '!RidFXtwOzjhv4wGg/P2gTA==?gAJ9cQEoVQFhSwVVAWNdcQIoSwFLAksDSwRVATVlVQFiWAcAAAB1bmljb2RlcQN1Lg==' - >>> test == bottle.cookie_decode(cookie, key) - True - >>> bottle.cookie_is_encoded(cookie) - True - >>> bottle.cookie_is_encoded('some cookie') - False |