Displaying 10 results from an estimated 10 matches for "salted_password".
2012 Oct 02
2
[PATCH] Add SCRAM-SHA-1 password scheme
...* This software is released under the MIT license.
*/
+#include <stdlib.h>
+
#include "auth-common.h"
#include "base64.h"
#include "buffer.h"
@@ -29,45 +31,22 @@
/* sent: */
const char *server_first_message;
- unsigned char salt[16];
- unsigned char salted_password[SHA1_RESULTLEN];
+ const char *snonce;
/* received: */
const char *gs2_cbind_flag;
const char *cnonce;
- const char *snonce;
const char *client_first_message_bare;
const char *client_final_message_without_proof;
buffer_t *proof;
+
+ /* stored */
+ buffer_t *stored_key;
+ buffer_t *ser...
2012 Sep 04
2
[PATCH] Generalize HMAC implementation
...x;
const char *auth_message;
unsigned char server_key[SHA1_RESULTLEN];
unsigned char server_signature[SHA1_RESULTLEN];
@@ -104,17 +105,17 @@
request->server_first_message, ",",
request->client_final_message_without_proof, NULL);
- hmac_sha1_init(&ctx, request->salted_password,
- sizeof(request->salted_password));
- hmac_sha1_update(&ctx, "Server Key", 10);
- hmac_sha1_final(&ctx, server_key);
+ hmac_init(&ctx, request->salted_password,
+ sizeof(request->salted_password), &hash_method_sha1);
+ hmac_update(&ctx, "Serv...
2006 Apr 13
3
Salted Hash Login Generator problem
...security_token"=>nil,
"role"=>nil,
"lastname"=>nil,
"firstname"=>nil,
"id"=>"1000001",
"deleted"=>"0",
"token_expiry"=>nil,
"verified"=>"1",
"salted_password"=>"ef94c16f6c124a4e84cc215c164767bfa25f6e92",
"login"=>"bob",
"email"=>"bob@test.com"}>>.
2) Error:
test_passwordchange(UserTest):
NoMethodError: You have a nil object when you didn''t expect it!
The error occure...
2005 Jul 05
2
Salted hash login generator (verification problem?)
...m running OSX 10.3.9, Webrick.
If someone can help, please please do. It''s driving me nuts.
Thanks,
Rob
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(10) unsigned NOT NULL auto_increment,
`login` varchar(80) NOT NULL default '''',
`salted_password` varchar(40) NOT NULL default '''',
`email` varchar(60) NOT NULL default '''',
`firstname` varchar(40) default NULL,
`lastname` varchar(40) default NULL,
`salt` varchar(40) NOT NULL default '''',
`verified` int(11) default ''0...
2006 Aug 09
0
admin.create error in devel. console
...dmin", "fullname"=>"Zack", "security_token"=>nil, "role"=>nil,
"id"=>13, "deleted"=>0, "token_expiry"=>nil, "credits"=>nil,
"verified"=>0, "logged_in_at"=>nil, "salted_password"=>"",
"created_at"=>Wed Aug 09 01:16:05 EDT 2006, "email"=>"zack@xxxxxx.com"},
@agreement="1", @new_password=false, @new_record=false>
any ideas as to why im getting this. this is an app that was built for
us and the developer i...
2005 Dec 19
1
Is there a guide for using ERBSQL?
...hatever.
But what I can''t find is a resource that explains the preset
constants or how to configure them if need be. For example the ERB
that comes with the saltedlogingenerator for rails looks like this:
CREATE TABLE users (
id <%= @pk %>,
login VARCHAR(80) NOT NULL,
salted_password VARCHAR(40) NOT NULL,
email VARCHAR(60) NOT NULL,
firstname VARCHAR(40) default NULL,
lastname VARCHAR(40) default NULL,
salt CHAR(40) NOT NULL,
verified INT default 0,
role VARCHAR(40) default NULL,
security_token CHAR(40) default NULL,
token_expiry <%= @datetime %> d...
2005 Dec 15
4
rake migrate ignores '':null => false'' on mysql
I wanted to add a login string column to an existing table
=> I created a migration :
...
def self.up
add_column "members", "login" , :string, :null => false
end
...
remark: it shouldn''t work, as the table is not empty (=> ''login'' would
be null in the existing rows.)
problem:
rake migrate didn''t complain
2006 Apr 04
3
model validates twice in tests, produces duplicate errors
...=
>nil, "zip_code"=>"265", "gender"=>nil, "token_expiry"=>nil, "is_verified"=>0, "birthday"=>nil, "is_deleted"=>0, "display_name"=>"invalid zip", "logged_in_at"=>nil, "salted_password"=>"", "created_at"=>nil, "email"=>"invalid...@myapp.com"}, @password_confirmation="asecurepassword", @new_password=false, @errors=#<ActiveRecord::Errors:0x38b7768 @base=#<User:0x38e0598 ...>, @errors={"zip_code"=>...
2006 Apr 04
2
HABTM
...3281697e8af6d09520
delete_after:
role:
security_token: a61f0622696cdf5d4da640091f73be700ea44f5a
id: "2"
firstname: Tobias
lastname: Bender
token_expiry: 2006-04-05 13:45:59
deleted: "0"
verified: "1"
login: tbender
salted_password: 393e2195368915812e1490528ae3071b2f266e6f
email: tbender@cl.uni-heidelberg.de
errors: !ruby/object:ActiveRecord::Errors
base: *id001
errors: {}
items: []
new_password: false
new_record_before_save:
return-to:
flash: !map:ActionController::Flash::FlashHash {}
Response...
2006 Mar 28
0
MySQL problems and undefined class User
...2503bf499c3106c787a7e
id: "1"
firstname: "Rafa\xC5\x82"
lastname: Grabowski
description: ""
token_expiry: 2006-02-05 19:55:09
deleted: "0"
phone: "603110654"
verified: "1"
login: rgrabowski
salted_password: b7f71599ed50ae37c47136f1c35a2e62d42ac05f
logged_in_at: 2006-03-28 16:00:48 +02:00
parent_id:
position: IT Serivce Manager
email: rgrabowski@exorigo.pl
created_at: 2006-01-28 22:40:11
errors: !ruby/object:ActiveRecord::Errors
base: *id001
errors: {}
new_pas...