lib/ossl_cryptor/cryptor.rb
# encrypt value and save to file.
# @param [String] file_path save file path.
# @param [String] value encrypt value.
# @param [boolean] encode_base64 encode base64 flag.
# @return [String] encrypt result value.

encrypt value and save to file.
encrypt value and save to file .
def encrypt_to_file(file_path, value, encode_base64=true)
      enc_value = encrypt(value, encode_base64)
      File.write(file_path, enc_value)
      enc_value
    end
def encrypt_to_file ( file_path , value , encode_base64 = true ) enc_value = encrypt ( value , encode_base64 ) File . write ( file_path , enc_value ) enc_value end
encrypt value and save to file.
encrypt value and save to file .
# encrypt value.
 # save file.

encrypt result value.
encrypt result value .
String
file_path
<not_specific>
value
<not_specific>
encode_base64
<not_specific>
<not_specific>
encode_base64 encode base64 flag.
encode_base64 encode base64 flag .