Posts

[Solved] code signature not valid for use in process using Library Validation

Image
So I was working on a C++ project on Xcode, and I updated to the latest version of Xcode with recommended default settings; then I started having the following errors: dyld: Library not loaded: /usr/local/lib/libcryptopp.dylib    Referenced from: /Users/devharsh/Library/Developer/Xcode/DerivedData/server-bohvcuztzndrrzhcoglrvuijfasj/Build/Products/Debug/server    Reason: no suitable image found.    Did find: /usr/local/lib/libcryptopp.dylib: code signature in (/usr/local/lib/libcryptopp.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. /usr/local/lib/libcryptopp.dylib: code signature in (/usr/local/lib/libcryptopp.dylib) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. /usr/local/lib/libcryptopp.dylib: code signature in (/usr/local/lib/libcryptopp.dylib) not vali...

[Solved] Google Sign-in Error: "sign in using your corporate mobile device"

Image
The error when you try to sign in to any Google service like Youtube or Google Drive from a corporate account: "We detected an unusual sign-in attempt. To ensure that someone else isn't trying to access your account, your organization needs you to sign in using your corporate mobile device (the phone or tablet you normally use to access your corporate account). If you don't have your corporate mobile device with you right now, try again later when you have your corporate mobile device with you. If you continue to have problems signing in, contact your administrator." To suppress this warning, you can: Login to Google Admin:  https://admin.google.com/ Go to Users >> Open the user account Go to "Login challenge." Click on "Turn off for 10 mins." Try to log in again, and it should be fine

Unable to revert mtime: /Library/Fonts [Solved]

Image
I was working on a python3 script on my macOS, and I came across this error: % python3 my-random-script.py Unable to revert mtime: /Library/Fonts I got it solved by installing libmagic: % brew install libmagic This message on macOS comes from the python-magic library when its underlying libmagic dependency is missing. The script still runs but cannot read file type information and prints this warning. Installing libmagic with Homebrew, as shown, supplies the missing piece and clears the message. python-magic relies on the same system libmagic that the file command uses.

NTRU in python3

Image
NTRU: NTRU – Nth Degree Truncated Polynomial Ring Units (or R = Z[X] / ( X^N-1 )) NTRU is the first public-key cryptosystem not based on factorization or discrete logarithmic problems. NTRU is a lattice-based alternative to RSA and ECC and is based on the shortest vector problem in a lattice. NTRU is an open-source public-key cryptosystem that uses lattice-based cryptography to encrypt and decrypt data. It consists of two algorithms: NTRUEncrypt, which is used for encryption, and NTRUSign, which is used for digital signatures. Unlike other popular public-key cryptosystems, it is resistant to attacks using Shor's algorithm. NTRUEncrypt was patented, but it was placed in the public domain in 2017. NTRUSign is patented, but it can be used by software under the GPL. Example in Python3: % python3 --version Python 3.9.1 % pip3 install --user sympy % pip3 install --user numpy % pip3 install --user docopt

[How To] Save Space on Google Photos

Image
Google Photos is a photo-sharing and storage service developed by Google . It was announced in May 2015 and separated from Google+, the company's former social network. In its free tier, Google Photos stores unlimited photos and videos up to 16 megapixels and 1080p resolution, respectively (anything larger gets down-scaled to these sizes). This free tier will end on June 1, 2021 . Photos and videos uploaded after that date get counted towards the 15 GB free quota shared across the user's Google services . There are subscriptions offered for users wanting to store their photos and videos at their "original" quality and requiring more storage than the 15 GB offered free. Storage (GB) Per Month (USD) Annual (USD) 15 0 0 100 1.99 19.99 200 2.99 29.99 2000 9.99 99.99 You can check out how much storage you are using across Google services out of your quota of free 15 GB. Go to Google Drive and check the storage bar on the left side. Or you can click on the Setting butto...