search for: binascii

Displaying 11 results from an estimated 11 matches for "binascii".

2015 Jun 30
2
how is the sha fingerprint generated?
You really don't need openssl for that. And the fingerprints are simple. Here is a python script that do the same as ssh-keygen -fl /path/to/key : #!/usr/bin/env python3 import binascii import hashlib import sys if __name__ == "__main__": key = binascii.a2b_base64(sys.argv[1]) if sys.argv[2] == "md5": m = hashlib.new("md5") m.update(key) print(m.hexdigest()) elif sys.argv[2] == "sha256": m = hashl...
2016 Feb 03
2
Python hashlib and ripemd160
Hi - I think the patent monster has struck again. rmd = hashlib.new('ripemd160',binascii.unhexlify(someString)).hexdigest() That fails - ValueError: unsupported hash type From some googling, it appears that the supported hash types are from OpenSSL and that means the OpenSSL in CentOS doesn't support ripemd160. I've worked around other stuff missing from CentOS OpenSSL by...
2016 Feb 03
1
Python hashlib and ripemd160
...igure --prefix=/opt/python-alternative and then > other normal stuff.. > > -- > Eero > > 2016-02-03 12:52 GMT+02:00 Alice Wonder <alice at domblogger.net>: > >> Hi - I think the patent monster has struck again. >> >> rmd = hashlib.new('ripemd160',binascii.unhexlify(someString)).hexdigest() >> >> That fails - ValueError: unsupported hash type >> >> From some googling, it appears that the supported hash types are from >> OpenSSL and that means the OpenSSL in CentOS doesn't support ripemd160. >> >> I'v...
2017 Oct 26
2
syncpassword and (strange) base64...
...exec code in run_globals File "/usr/lib/python2.7/base64.py", line 360, in <module> test() File "/usr/lib/python2.7/base64.py", line 349, in test func(sys.stdin, sys.stdout) File "/usr/lib/python2.7/base64.py", line 306, in decode s = binascii.a2b_base64(line) binascii.Error: Incorrect padding root at vdcsv1:~# echo "flhibllHV2tPVFMyIXIjcGpnWUE/cmV1Q3hjLm5BQUQycX5EdyR1NGh" | LANG=C perl -MMIME::Base64 -ne 'printf "%s\n",decode_base64($_)' ~XbnYGWkOTS2!r#pjgYA?reuCxc.nAAD2q~Dw$u4h so: a) 'base64' d...
2019 Mar 28
2
Encoding problem with the unicodePwd stored into sam.ldb
hello, I use Samba 4.9.5 on Linux Debian 9. I want to extract users' passwords. A lot of passwords are ok, some are not. Example with a password returning an error : # ldbsearch -H /var/lib/samba/private/sam.ldb '(primaryGroupID=513)' userPrincipalName unicodePwd .... # record 494 dn: CN=XXX,CN=Users,DC=YYY,DC=ZZZ,DC=fr unicodePwd:: wXQvJaSkn0gvg1POsY9Icw== uidNumber: 5110
2013 Apr 02
1
Rpy2 and Mac OS X 10.8.3
...FB2-30E5-81D1-B6FE12351BF2> /opt/local/lib/*/libgcc_s.1.dylib 0x1007c7000 - 0x1007ccfef +math.so (???) <E6B861CF-FF7B-01E7-C873-5CCC030C1CE3> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so 0x1007d3000 - 0x1007d6fef +binascii.so (???) <7C14C92D-B218-F27F-4F3A-9809AFAB395A> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so 0x1007da000 - 0x1007ecff7 +libz.1.dylib (1.2.7) <CB0AF5A1-4847-4398-FBE4-78483C8F8866> /opt/local/lib/libz.1.dylib 0x100...
2013 Apr 02
1
Rpy2 and Mac OS X 10.8.3
...FB2-30E5-81D1-B6FE12351BF2> /opt/local/lib/*/libgcc_s.1.dylib 0x1007c7000 - 0x1007ccfef +math.so (???) <E6B861CF-FF7B-01E7-C873-5CCC030C1CE3> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/math.so 0x1007d3000 - 0x1007d6fef +binascii.so (???) <7C14C92D-B218-F27F-4F3A-9809AFAB395A> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/binascii.so 0x1007da000 - 0x1007ecff7 +libz.1.dylib (1.2.7) <CB0AF5A1-4847-4398-FBE4-78483C8F8866> /opt/local/lib/libz.1.dylib 0x100...
2016 Feb 03
0
Python hashlib and ripemd160
...thon-alternative? usually works like ./configure --prefix=/opt/python-alternative and then other normal stuff.. -- Eero 2016-02-03 12:52 GMT+02:00 Alice Wonder <alice at domblogger.net>: > Hi - I think the patent monster has struck again. > > rmd = hashlib.new('ripemd160',binascii.unhexlify(someString)).hexdigest() > > That fails - ValueError: unsupported hash type > > From some googling, it appears that the supported hash types are from > OpenSSL and that means the OpenSSL in CentOS doesn't support ripemd160. > > I've worked around other stuff m...
2017 Apr 09
6
Samba 4 account with a 'ldbmodify-ed' password does not login into domain from a Windows 7 VM
Citando Andrew Bartlett <abartlet at samba.org>: > On Fri, 2017-04-07 at 20:32 +0000, Leonardo Bruno Lopes via samba > wrote: >> Hi everyone! >> >> I have a LDAP with all my users' accounts, each one with the >> sambaNTPassaword correctly defined. I also have a freshly installed >> Samba >> 4.2 running on a Debian 8.7 box. >> >> I
2010 May 17
0
strace log
...152, PROT_NONE) = 0 mmap(0x7f731869d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 8, 0x6000) = 0x7f731869d000 close(8) = 0 close(7) = 0 close(6) = 0 stat("/usr/lib/xen-3.2-1/bin/binascii", 0x7ffffffefcd0) = -1 ENOENT (No such file or directory) open("/usr/lib/xen-3.2-1/bin/binascii.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/xen-3.2-1/bin/binasciimodule.so", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/xen-...
2008 Jul 01
17
Memory leak scripts
Hola, I am trying to isolate the memory leak I suspect in a mailman installation ? I found: http://blogs.sun.com/sanjeevb/date/200506 It gives an error: god at irt-smtp-02:~ 9:21am 65 # ./memleak.d 10312 dtrace: failed to compile script ./memleak.d: line 3: probe description pid10312:libc.so.1:malloc:entry does not match any probes I am on SunOS 5.10 Generic_127112-07 i86pc i386 i86pc Are