keybase / python-triplesec

A Python port of the triplesec library.
BSD 3-Clause "New" or "Revised" License
82 stars 18 forks source link

Example code doesn't work (can't import triplesec) #6

Closed dkulchenko closed 10 years ago

dkulchenko commented 10 years ago
daniilk:~ ∞ python
Python 2.7.8 (default, Aug 24 2014, 14:51:50)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import triplesec
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "triplesec.py", line 4, in <module>
    enc = triplesec.encrypt(b"Pssst. I believe I love you.", b'top-secret-pw')
AttributeError: 'module' object has no attribute 'encrypt'
>>>
dkulchenko commented 10 years ago

Never mind, was doing it wrong. Works fine actually :)