search for: encryption_key

Displaying 5 results from an estimated 5 matches for "encryption_key".

2010 Jul 19
3
ActiveRecord override
Would really appreciate it if someone could tell me why this is happening: I override ssn method of AR class so I can encrypt/decrypt to/from the db: class Person < ActiveRecord::Base def ssn=(value) write_attribute(:borrower_ssn, Crypto.encrypt(self.encryption_key, value)) write_attribute(:borrower_ssn_final_four, value[5,4]) end def ssn # this begin - rescue can be removed once all data is encrypted begin return Crypto.decrypt(self.encryption_key, read_attribute(:borrower_ssn)) if read_attribute(:borrower_ssn) && self.encrypti...
2010 Nov 04
1
Calling a method directly from a test => no method error
...oded_cipher_text) out << cipher.final end end end Here is the "after save" hook: module Encryptor module ActiveRecord class Encryptor include ::Encryptor::Routines def after_save(model) unless model[@field].blank? key = model.class.encryption_key model[@field] = decrypt(model[@field], key, @options) end end end end end Here is the test: require ''test_helper'' class UserTest < ActiveSupport::TestCase fixtures :users test "the_encrypter" do @user = users(:bob) @use...
2017 Dec 06
1
problem when use tls to connect libvirt
Hi guys, I met a problem when I use tls to connect libvirt. When I set the CN in client.info, server.info as hostname(FDQN), the tls check will fail with ip; and vice versa, when set CN as ip address, the tls check will fail with hostname. Only use what we set in can succeed. If this is expected? or I there was some issue in my env. or setup steps? 1. set tls env with hostname, then it will
1999 Oct 20
3
patch for tinc-0.3
Hi tinc list members, There were some problems with Ivo's email adresses (both zarq@iname.com and zarq@spark.icicle.dhs.org) so I resent the stuff to the mailling list. ============================================= Hi Ivo, Hier is een oplossing voor een bugje in flush_queue(), en ook wat andere troepjes zoals een tincd scheduler. Dit werkt wat beter, omdat de
2020 Nov 19
0
PANIC outstanding aio + key does not exist
...0: SMBXSRV_ENCRYPTION_REQUIRED 0: SMBXSRV_ENCRYPTION_DESIRED 0: SMBXSRV_PROCESSED_ENCRYPTED_PACKET 1: SMBXSRV_PROCESSED_UNENCRYPTED_PACKET signing_key : NULL encryption_key : NULL decryption_key : NULL num_channels : 0x00000001 (1) channels: ARRAY(1) channels: struct smbXsrv_channel_global0 server_id: struct server_id...