search for: decode64

Displaying 18 results from an estimated 18 matches for "decode64".

Did you mean: decode
2008 Nov 03
3
MS-SQL deliveres binary image as array
Hello! I need to display images stored in a MS-SQL database but I get the following error: NoMethodError (undefined method `unpack'' for #<Array:0x48cbff0>): c:/ruby/lib/ruby/1.8/base64.rb:59:in `decode64'' I guess its because MS-SQL delivers an arry... Is there a solution to this problem?? Please help me! lacky -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "R...
2005 Dec 14
3
Advanced routing question.
Hello All, I''m making a quick application that tracks outgoing links to referral sites. I need to track the user and the url they went to so the easiest way would be to take the entire url as a parameter and log that into the database. I was wondering if I could do something like this with routing: http://www.example.com/user/jump/http://www.myvendor.com/referral.php?
2008 Dec 13
2
Need Help in converting php encryption decryption code to ruby on rails
...igest(iv)) enc_text +=block intermedi=block+iv kk='''' for j in 0..intermedi.size-1 kk +=intermedi[j].to_s(2) end iv=kk.to_i^pass.to_i i +=16 end return Base64.encode64(enc_text) end # def md5_decrypt(enc_text,password,iv_len=16) enc_text=Base64.decode64( enc_text) n=enc_text.size i=iv_len plain_text='''' pass='''' for ii in 0..password.size-1 pass +=password[ii].to_s(2) end lmp=enc_text[0,iv_len] enc='''' for k in 0..lmp.size-1 enc=lmp[k].to_s(2) end intermedi=(pas...
2017 May 24
1
Postfix and Dovecot SASL: log NTLM username
In fact, looking again, dovecot should log the failure with username, if available. Aki On 24.05.2017 09:22, Aki Tuomi wrote: > As band-aid you could try looking at the SASL message, if you decode64 > it might contain the username in plain text. > > Aki > > > On 23.05.2017 17:44, Bradley Giesbrecht wrote: >> The problem we are facing is incorrect authentications being caught by firewall rules and IP?s getting blocked. We would like to be able to identify the problem acc...
2017 May 23
2
Postfix and Dovecot SASL: log NTLM username
The problem we are facing is incorrect authentications being caught by firewall rules and IP?s getting blocked. We would like to be able to identify the problem account to help the domain admin track down the issue. Does anyone have another idea? We use sql user db so I thought of logging all login attempts to a table with timestamps and lookup the failed logins by timestamp. Regards, Bradley
2010 Nov 04
1
Calling a method directly from a test => no method error
...Can someone help me with the correct "address" for decrypt so I can call it directly. Here is the routine definition: module Encryptor module Routines def decrypt(cipher_text, key, opts) cipher = OpenSSL::Cipher::Cipher.new(algorithm(opts)) decoded_cipher_text = Base64.decode64(cipher_text) #cipher.decrypt(key, decoded_cipher_text.slice!(0..15)) cipher.decrypt cipher.pkcs5_keyivgen(key) # DW 11/3/10 Above two lines per deprecation warning and stackoverflow site # TODO Use a real Salt instead of Thoracic1 out = cipher.update(decoded_ciph...
2009 Mar 27
1
UTF8 postgres args saving issue
...;'ve had a character encoding issue) Here''s the bulletproof hack that I added to my BdrbJobQueue ... #these accessors get around any possible character encoding issues with the database def args=(args) write_attribute(:args, Base64.b64encode(args)) end def args Base64.decode64(read_attribute(:args)) end ... Hope that helps someone. It will help anyone who has the problem referred to here http://rubyforge.org/pipermail/backgroundrb-devel/2009-March/002325.html. Note, to the best of my knowledge all my other UTF8 settings are correct. Cheers Justin -------------- next...
2012 Dec 16
3
Running code in another controller action
I am doing a partial render in the view from one controller. Here is the code -> <%= render :template => ''restaurants/new'' %>. I want the other controller new action code to do it. Is there a way to call an action in another controller ? I don''t want to duplicate the same code in two controllers. -- You received this message because you are
2008 May 17
4
Setting cookies in service overloader thingo
...the camping sessions mixin so people can ''upgrade'' in either direction easily, consider this code however... > def service(*a) > if @cookies.identity > blob, secure_hash = @cookies.identity.to_s.split('':'') > blob = Base64.decode64(blob) > data = Marshal.restore(blob) > data = {} unless secure_blob_hasher(blob) == secure_hash > else > blob = '''' > data = {} > end > > app = self.class.name.gsub(/^(\w+)::.+$/, ''\1'') >...
2017 May 24
0
Postfix and Dovecot SASL: log NTLM username
As band-aid you could try looking at the SASL message, if you decode64 it might contain the username in plain text. Aki On 23.05.2017 17:44, Bradley Giesbrecht wrote: > The problem we are facing is incorrect authentications being caught by firewall rules and IP?s getting blocked. We would like to be able to identify the problem account to help the domain admin t...
2006 Jul 25
6
form and pagination question
Hello, How do I get params from a form to use with a paginator? debug(params) shows this city: !map:HashWithIndifferentAccess id: "1" but in my controller, when I try to use @hotel_pages = Paginator.new self, Hotel.count(:conditions => "hotels.city_id = params[:city][:id]"), 3, @params[''page''] it doesn''t work. I suppose it''s a simple
2006 Apr 19
2
how to pass a hash as a parameter in link_to_remote
When using link_to_remote, I''d like to pass along some auxiliary data in the request. It''s a hash of dynamic data that can change with each request. But I get an error when rails trying to "stringify" the hash. For the regular link_to, it works because it turns the hash into a regular GET-like query string. I''m expecting to be able to get my hash as
2006 Jun 07
2
Hash flattening on paginator link_to
Hey I need some help with pagination and the link_to in the view. I''m trying to include a hash in the pagination link_to params and it keeps flattening out my hash. Example: Here''s my hash called @answer: "answer"=>{"6"=>"9bf31c7ff062936a96d3c8bd1f8f2ff3", "7"=>"6f4922f45568161a8cdf4ad2299f6d23"}
2006 May 18
3
Two-Dimensional Hashes through links?
I''m really hitting a wall here. My program has a search engine, returns a list of results. I am using a two-dimensional hash to pass the form data back to my controller. (i.e. params[:job] => {:description => "xxx", :location => "xxx", company => "xxx"}) I use that Job object to search my database, and then wait for user input. Now when the
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde
2006 Jun 30
6
RSS::Parser Documentation
Hi I am trying to use the RSS classes from "rss/2.0" and everything works but I want to know what attributes and properties I can get at from each of the classes I am getting back. For example, the class has a "channel" which I can tell has a "title" attribute (because it works when I query it :) but I would really like a list of every attribute that is
2004 Jan 01
1
[PATCH] Add winbind-backed NTLMSSP support to Cyrus-SASL
...) sparams->utils->free(nt_resp_c); - if (domain) sparams->utils->free(domain); - if (authid) sparams->utils->free(authid); - if (password) _plug_free_secret(sparams->utils, &password); + if ( strncmp(childbuf, "TT ", 3) == 0) { + if (params->utils->decode64(childbuf+3, base64len, + bin, sizeof(bin)-1, + serveroutlen) != SASL_OK) { + syslog(LOG_DEBUG, "Could not decode child's base64\n"); + return SASL_FAIL; + } + *serverout = bin; - return result; -} + /* Next round */ + return SASL_CONTINUE; + } + if (strncm...
2005 Dec 27
3
myObject.send(column.name) from Agile Development book
I''m studying the Agile Development with Rails book. In the chapter that first sets up the depot application (page 68), there is this bit of code from a view: <% for product in @products %> <tr> <% for column in Product.content_columns %> <td><%=h product.send(column.name) %></td> <% end %> etc... I am trying to absorb both Ruby and