doc: python bindings howto
* Fixed org-mode python source indenting. ** Note: nested indented blocks do not indent correctly when exported to [X]HTML.
This commit is contained in:
parent
9fca7c8406
commit
9038d30017
@ -588,7 +588,7 @@
|
|||||||
logrus.append(rpattern[i])
|
logrus.append(rpattern[i])
|
||||||
|
|
||||||
ciphertext, result, sign_result = c.encrypt(text, recipients=logrus, sign=False,
|
ciphertext, result, sign_result = c.encrypt(text, recipients=logrus, sign=False,
|
||||||
always_trust=True)
|
always_trust=True)
|
||||||
|
|
||||||
with open("secret_plans.txt.asc", "wb") as afile:
|
with open("secret_plans.txt.asc", "wb") as afile:
|
||||||
afile.write(ciphertext)
|
afile.write(ciphertext)
|
||||||
@ -950,7 +950,7 @@
|
|||||||
|
|
||||||
#+begin_src python
|
#+begin_src python
|
||||||
with open(filename, "rb") as afile:
|
with open(filename, "rb") as afile:
|
||||||
text = afile.read()
|
text = afile.read()
|
||||||
|
|
||||||
if text == data:
|
if text == data:
|
||||||
print("Good signature.")
|
print("Good signature.")
|
||||||
@ -1050,7 +1050,6 @@
|
|||||||
tofu-default-policy unknown
|
tofu-default-policy unknown
|
||||||
enable-large-rsa
|
enable-large-rsa
|
||||||
enable-dsa2
|
enable-dsa2
|
||||||
# cert-digest-algo SHA256
|
|
||||||
cert-digest-algo SHA512
|
cert-digest-algo SHA512
|
||||||
default-preference-list TWOFISH CAMELLIA256 AES256 CAMELLIA192 AES192 CAMELLIA128 AES BLOWFISH IDEA CAST5 3DES SHA512 SHA384 SHA256 SHA224 RIPEMD160 SHA1 ZLIB BZIP2 ZIP Uncompressed
|
default-preference-list TWOFISH CAMELLIA256 AES256 CAMELLIA192 AES192 CAMELLIA128 AES BLOWFISH IDEA CAST5 3DES SHA512 SHA384 SHA256 SHA224 RIPEMD160 SHA1 ZLIB BZIP2 ZIP Uncompressed
|
||||||
personal-cipher-preferences TWOFISH CAMELLIA256 AES256 CAMELLIA192 AES192 CAMELLIA128 AES BLOWFISH IDEA CAST5 3DES
|
personal-cipher-preferences TWOFISH CAMELLIA256 AES256 CAMELLIA192 AES192 CAMELLIA128 AES BLOWFISH IDEA CAST5 3DES
|
||||||
|
Loading…
Reference in New Issue
Block a user