unpack
Easiest way to determine sizeof( double ) and sizeof( int ) from Ruby?
For unpacking complex binary strings with mixed doubles and integers using Ruby\'s String.unpack I need to determine offsets within the binary string. Commonly, doubles are 8 bytes and integers are 4[详细]
2023-02-12 03:52 分类:问答Verifying salted hashes with Perls unpack()
I\'m trying to verify salted passwords with Perl and am stuck with unpack. I\'ve got a salted hashed password, e.g. for SHA256: SSHA256 = SHA256(\'password\' + \'salt\') + \'salt\'[详细]
2023-01-31 09:59 分类:问答When would you use unpack('h*' ...) or pack('h*' ...)?
In Perl, pack and unpack have two templates for converting bytes to/from hex: h A hex string (low nybble first).[详细]
2023-01-18 21:23 分类:问答Get timestamp from base64Binary in PHP
A webservice returns a timestamp field in base64Binary format. It looks like this in SOAP response: <a:TimeStamp>AAAAAAMpI9Q=</a:TimeStamp>[详细]
2023-01-17 13:04 分类:问答Pack / unpack a 64-bit int on 64-bit architecture in PHP
Why do I get the following output on an x64 architecture? 开发者_JAVA百科$ php -r \'echo pow(2, 33) . \"\\n\";print_r(unpack(\"Ivalue\", pack(\"I\", pow(2, 33))));\'[详细]
2023-01-07 05:57 分类:问答Perl pack/unpack/shift
I\'ve been having this problem in Perl for a few days now, and after scouring countless man pages, perldocs and googling too many search terms, hopefully someone here can help me out.[详细]
2023-01-06 05:21 分类:问答How to print a variable in reversed byte order?
I\'m trying to convert the variable $num into its reverse byte order and print it out: my $num = 0x5514ddb7;[详细]
2023-01-02 17:23 分类:问答How to download and unpack .ZIP folder using Adobe Air?
How to download and unpack .ZIP folderusing Adobe Air? So I have http link onto that zip file example.com/zip.zip I need a function to download it onto users ha开发者_如何学Gord drive and unpack it in[详细]
2022-12-31 23:08 分类:问答Obfuscated Javascript Code from Facebook Application?
This is the code that was copied and pasted into my address bar: javascript:(function() {a=\'app117970624901700_jop\';b=\'app117970624901700_jode\';ifc=\'app117970624901700_ifc\';ifo=\'app1179[详细]
2022-12-30 04:59 分类:问答How do I unpack a binary string in PHP?
How can I do th开发者_C百科is Perl code in PHP? print unpack (\"H*\", pack (\"B*\", \"00000000100000012000000\" ));[详细]
2022-12-28 04:37 分类:问答