Displaying 20 results from an estimated 1000 matches similar to: "Decrypt a admin password (with salt)"
2006 Jan 23
3
Encrypt/ Decrypt password
Hi,
I have user add/edit forms.While creating a user I tried the following
method to encrypt password and stored the encrypted password in the
table.
def self.sha1(pass)
Digest::SHA1.hexdigest("#{salt}--#{pass}--")
end
But when I try to edit the page I get the encrypted password in the
password field instead of the decrypted password. Is there any method
to decrypt
2006 Mar 24
0
undefined method `crypted_password='' while using Sentry
I''d like to hear from some one who has been using Sentry successfully.
I am trying to
symmetrically_encrypts :password
for a user model. It is a bare bones model just to test Sentry. I have
password defined as ''text'' in the users table. I have openssl library
installed on Debian Sarge. The secret key is defined in
environment.rb. But when I submit the form I get
2006 Feb 06
5
Sentry Plugin - Easy Question I don''t doubt
I am looking at adding the Sentry plugin to one of the applications
that we are working on. I have a need to store some info that will
have to be encrypted and decrypted. I have been going through the
docs for the plugin and the AsymetricSentry class looks like the best
for what we need to do but I am not sure how to generate the key. The
docs say:
This is a shortcut for using an
2006 Mar 25
0
[Sentry]-before_validation(model) not working for crypted-attribute?
I am still trying to get sentry working to encrypt a couple of
attributes in the model. One of them is a password field and the other
ssn#.
I have crypted_password and crypted_ssn in the db.
In addition, I also have validates_uniqueness_of :ssn
Here is the problem... I get the error
MysqlError: Unknown column ''ssn'' in ''where clause'': SELECT * FROM
students
2009 Jan 14
7
Selecting a linux distro for a xen-involved project
Hi,
I wanted an opinion on the most xen-compatible linux distro.
Im embarking on a 4 month project with xen which involves the following
objectives:
1.>Creating a tool with GUI that allows
a)starting,stopping restarting domUs
b)maintaining a status log of domUs
c)migration of dom Us
d)
2008 Aug 01
0
Help with Access Control
Hi,
I am following the excellent tutorial http://www.railsforum.com/viewtopic.php?id=14216
(post 5) on how to implement an access control feature i.e. only a
friend is allowed to view a profile of a particular member. I am not
using the restful authentication plugin as the author is using to
implement the authentication feature (post 1) in the tutorial. All I
am interested in is the post 5
2006 Feb 11
5
after_(read|find) callback?
I am pondering the possibility of encrypting/decrypting some fields
in a SQLite backend on-the-fly.
The point of the message is not security, I know that''s broken, but
whether there''s a technique that provides on-the-fly save/read
filters. Of course the solution would need to work transparently in
joins, so
user.posts.last.title
would do the right thing if title
2010 Jun 24
9
port OS to XEN
Hello everyone,
I''m studying XEN these days, and totally a newbie for XEN world. Recently,
I''m assigned to move our OS to run on XEN, I means, paravitualization. I
know a bit about XEN technique, and I tried to look into Linux code, but it
seems too many threads to get understood it ... Now, I have no idea how
to proceed my project... Can anyone give some advice?
Any suggestion
2009 Feb 04
3
unable to assign ip from config file
Hi,
im using a fedora core 8 domU and fedora core 8 as my dom0 on xen3.1.0-13,
my config file reads:
kernel = "/boot/vmlinuz-2.6.21-2950.fc8xen"
ramdisk="/boot/initrd-2.6.21-2950.fc8xen-no-scsi.img"
memory = 428
name = "fedora1.fc8"
vif = [ ''mac=00:16:3e:00:00:03,ip=192.168.2.105'' ]
dhcp = "off"
netmask = "255.255.255.0"
gateway
2012 Oct 18
2
How to import data from text file using scan() Function?
Hi....
I have one text file which containing 4 variables with 10 observations.
I would like to import with scan() function. Please give some
suggestion............
Thanks...
Mydata set is.
id name sex age
111 HELEN f 22
112 DONNA f 22
113 ERIC m 21
114 LINDA f 23
115 AXEL m 27
116 Madhuri f 32
117 Tarun m 39
118 Aashirya f 23
119 Nachik m 24
120 Leena f 32
--
View this message in context:
2007 Mar 13
4
Centos-specific Denyhosts Howto Anyone?
Hi, after reading the docs (no man page) and seeing a few example
howtos, I see none for Centos specifically.
I hereby offer to write this and even host it, and any other wiki-able
howto you want, if you can school me on the first few steps relevant to
how to link up the current rpmforge rpm for RHEL4-64. See, right now,
the one for centos loads into the /usr/share/doc, which is an odd place
2009 Jan 29
1
Cant ssh into domU
hi,
I cant ssh into my domU from the Dom0 even if i type the correct password.
The ip of my domU is 192.168.2.100, and from my dom0 i type:
#ssh root@192.168.2.100
The authenticity of host ''192.168.2.100 (192.168.2.100)'' can''t be
established.
RSA key fingerprint is 25:91:2c:63:6d:fc:ba:28:b8:54:2c:14:b1:c5:e5:cf.
Are you sure you want to continue connecting (yes/no)?
2009 Nov 14
3
authlogic fails on existing accounts when crypted_password is blank
I recently ran a migration to add the following to an existing user
model:
t.string "crypted_password"
t.string "password_salt"
t.string "persistence_token"
There is an existing (cleartext) password field, but authlogic doesn''t
seem to be reading that on existing accounts. As a result, all logins
for existing accounts fail.
How can I get
2006 Feb 19
2
Asynchronous Encryption?
Hi Railers,
I''m looking for something to do asynchronous encryption - where the encryption
and decryption keys are different. This is for a scenario where I want to be
able to store some information in the database that can only be decrypted in
a different physical location using a secret private key (which will not be
stored on the machine doing the encrypting).
I''m trying
2006 May 06
2
[LLVMdev] Still Trying to Build on MINGW
Chris Lattner wrote:
> On Sat, 6 May 2006, Reid Spencer wrote:
>> Looks like Jeff Cohen already fixed this in CVS. Please update and give
>> it another shot.
>
> Is this fixing the issue, or just papering over it? Why are we trying
> to load an archive member without a path set?
We're not. It's just a sentry value.
>
> -Chris
>
>> On Sat,
2006 Apr 26
1
Possible acts_as_authenticated bug (or rails)
The code that comes with the plugin uses a method that looks like this:
def password_required?
crypted_password.blank? or not password.blank?
end
with validations that look like this:
validates_presence_of :password, :if =>
:password_required?
validates_presence_of :password_confirmation, :if =>
:password_required?
validates_length_of
2018 May 17
1
Decryption method for Maildir messages stored by mail_crypt plugin
I've successfully implemented the mail_crypt plugin on v2.2.27 and it's
working like a champ, but some of our administrative operations require
access to Maildir messages in plaintext.
I've found numerous threads detailing help with mail_crypt setup, but none
of my research has yielded a method of decrypting the stored messages.
Relevant plugin config:
mail_crypt_curve =
2006 May 06
2
[LLVMdev] Still Trying to Build on MINGW
Greg,
Looks like Jeff Cohen already fixed this in CVS. Please update and give
it another shot.
Thanks,
Reid.
On Sat, 2006-05-06 at 16:43 -0400, Greg Pettyjohn wrote:
>
> On Sat, 6 May 2006, Greg Pettyjohn wrote:
>
> > Now I'm having problems with this:
> >
> > llvm-ar rc ./libgcc.a libgcc/./_muldi3.o <and-lots-more-.o-files...>
> >
2006 Mar 22
15
Rails-1.1.0-RC1 tagged today (4010)
Looks like Rails 1.1.0 RC1 is finally here:
http://dev.rubyonrails.org/changeset/4010
--
Posted via http://www.ruby-forum.com/.
2012 Mar 22
1
Rspec not loading fixtures
I am taking over a code base and am trying to run the tests. I am
somewhat new to RSpec so this might be a trivial problem.
Basically I can tell that the fixtures are not getting loaded. All 100
tests fail with a similar error.
But I don''t know why. Below is the code, with my narrative with ***
before it... Can you see anything or give me a clue where to look. So
far I am coming up