Displaying 20 results from an estimated 300 matches similar to: "how to use before_filter to decrypt post data"
2006 Mar 16
1
sql functions in cru ( not d )
Hi,
I''m looking at ways to encrypt email addresses rather than storing
them directly in the database.
There are several ways that it could be done. I could make an
Encrypter class and use before_update, etc. Or I could set up an
updatable VIEW in mySql. (I guess triggers might be another
possibility.)
However, what I would really LIKE to do is use the handy AES_ENCRYPT
and
2010 Mar 19
5
Encrypt/decrypt in R
Hi all,
Does any one know of any encryption/decryption algorithms in R? I'm
not looking for anything robust - I want some way of printing output
to the screen that the user can't read immediately, but can decrypt a
little later. The main thing I don't want to the user to see is a
number, so (e.g.) ROT13 isn't appropriate.
Hadley
--
Assistant Professor / Dobelman Family Junior
2008 Jan 29
0
Available: Multi-threaded AES-CTR Cipher
On multiple core systems OpenSSH is limited to using a single core for
all operations. On these systems this can result in a transfer being
processor bound even though additional CPU resources exist. In order to
open up this bottleneck we've developed a multi-threaded version of
the AES-CTR cipher. Unlike CBC mode, since there is no dependency
between cipher blocks in CTR mode we
2012 Apr 28
2
help with AES_DECRYPT and password lookup - mysql password_query
Hello-
Sorry if this is a noob question, but I cant seem to get my password_query to
work with dovecot + mysql. Im using 'Password verification by SQL server' at:
http://wiki2.dovecot.org/AuthDatabase/SQL
trying to modify it to work with my encrypted passwords in the DB.
Im using the following which isnt working:
password_query = SELECT NULL AS password, \
'Y' as
2007 Aug 07
4
Howto use ENCRYPT() function of MySQL
Hi all,
I''m working actually on a Control Panel to manage a mail system.
Until now, when I create a new mail account, i do an insert and protect
the pasword with ENCRYPT(''password'') function.
I can''t change the method to SHA1 or MD5 because the SMTPd a IMAPd will
not support it.
Can you explain me how to force RoR to rewrite the INSERT SQL query and
use
2017 Apr 30
2
most secure password scheme
Hello,
Thanks for the explanation. So should I go with SSHA512 or
SHA512-CRYPT? From your explanation i'm interpreting to mean that
SHA512-CRYPT also salts. This is for storing in a mysql database.
Also, what should the password field length and type be set for?
Currently it's varchar(128)
Thanks.
Dave.
On 4/29/17, Aki Tuomi <aki.tuomi at dovecot.fi> wrote:
>
>> On April
2014 Mar 27
1
Asterisk SSL support broken with update from openssl-1.0.0 to 1.0.1e, recompiling does *not* help
I am having an issue that prevents WebSockets over SSL/TLS (or any kind of encrypted HTTP traffic to Asterisk) from working after an openssl library update.
My setup is CentOS 6 x86_64, and initially, with openssl[-devel]-1.0.0-20.el6_2.5.x86_64 . With this openssl versions, https over TCP port 8089 initializes correctly with asterisk-11.7.0. After an upgrade to
2005 Mar 14
1
When decrypt using SPEEXDEC it's impossible decrypt to 8bit, the only way is 16bit.
Dear speex developer,
I have a problem:
I use SPEEXENC on my mono 8bit 11024 Khz Wav - works OK
When decrypt using SPEEXDEC it's impossible decrypt to 8bit, the only way is 16bit.
Is there any help?
Thank you
Rosta Janca
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Dec 11
0
before_filter work around
Hi All,
I am working on a rails app that has facebook and non-facebook
portions and since facebooker seems to want to resolve to the default
route of "/" i''ve written a little before filter that seems to make
these two exist OK.
def is_facebook_request?
redirect_to(params.merge({ :controller => ''facebook_accounts'' }))
and return false if
2006 Aug 03
1
strange before_filter error. is this a bug i have found?
...
before_filter :find_regression_test
def find_regression_test
@regression_test=RegressionTest.find(8)
end
....
The above seems like perfectly normal before_filter syntax, but it gives
this error. Aldo is no application trace, just a framework trace:
Any idea what is wrong?
NoMethodError in Regression testsController#modify_regression_test
private method `equal?''
2006 Jul 26
5
Restricting before_filter to certain actions?
Can you restric before_filter to specific actions?
--
Posted via http://www.ruby-forum.com/.
2006 Apr 17
2
newbie before_filter question
I''ve successfully gotten acts_as_authenticated working. Currently the
before_filter line for my admin screen is like this:
class AdminController < ApplicationController
include AuthenticatedSystem
before_filter :login_required
Only issue I have now is that anyone logged in can access that screen.
I''d like to differentiate between a regular user and
2006 Mar 10
3
before_filter question
Let''s say I''m using before_filter in my controller:
before_filter :setup
def setup
# do something here
end
Is there any way my setup method can know which action is really about
to be called? Let''s say I want to log out which action is going to be
called, how can I know that in the before_filter method? (My question
is not really about logging,
2008 Mar 16
0
bypassing verify_authenticity_token before_filter when in facebook
Hi list,
Not sure if this is helpful for anyone but I am working on a Facebook
project where I need bypass the new CSRF protection (built into Rails
2.0) under certain conditions. However, since my project works
outside of Facebook I don?t want to disable the CSRF protection from
requests made outside of Facebook.
Here is a small extension i wrote for the ForgeryProtection module.
2006 Feb 20
1
Using :except or :only on a before_filter block
Hi all,
How do you use :except or :only conditions on a filter block? I can''t
seem to work out the syntax!
I''m currently doing:
before_filter { |c| c.role_required ''admin'' }
Thanks a lot!
Tom
2005 Dec 15
2
Passing parameters to before_filter methods
I have a method that checks for a given role. I want to write
something in my controllers like
before_filter :check_roles(''admin'')
Which will ensure the current user has the admin role. Is it possible
to pass parameters in this way?
Ian
2007 Jan 13
0
before_filter not executed in functional tests
Hi,
I have a before_filter ''authorize'' defined in the application controller
that checks for a user in the session. However, when I test a controller
(that has before_filter ''authorize'') like this:
def test_new_without_login
get :new
assert_redirected_to new_session_path
end
the fails because the response is ''success'' instead. When I set
2006 Nov 21
2
before_filter in actionwebservice controller using direct dispatching
The docs say that for direct dispatching mode to use controller
filters, but when the controller is run I get the following error.
The authorize method is in application.rb. Works fine when it''s not a
web service api. Should I be using before_invocation instead even
with direct dispatching mode? Or can I not have the authorize method
in application.rb?
undefined method
2008 Jun 25
2
How to escape from the before_filter for the particular acti
Hi,
We use the following code in the ApplicationController.
before_filter :login_required
Iam aware, this will be called for every action.
How to escape for the particular action?
Thanks,
Ayyanar. A
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2008 Oct 25
1
Returning a variable to before_filter
I know its probably doesnt sound right, but I am trying to call a
before_filter method that will check whats the user role and then
based on that return a string / hash / array to the before_filter
something like this:
class MonqiClassesController < ResourceController::Base
before_filter :check_user_access_level , grant_access
def check_user_access_level
if