Method: Crypt::CBC#encrypt_string
- Defined in:
- lib/extensions/crypt/crypt/cbc.rb
#encrypt_string(plainText) ⇒ Object
108 109 110 111 112 113 114 |
# File 'lib/extensions/crypt/crypt/cbc.rb', line 108 def encrypt_string(plainText) plainStream = StringIO.new(plainText) cryptStream = StringIO.new('') encrypt_stream(plainStream, cryptStream) cryptText = cryptStream.string return(cryptText) end |