how to read encrypted_value in chrome cookie file - google-chrome

Chrome cookies on windows machines are stored in C:\Users\user\AppData\Local\Google\Chrome\User Data\Default\Cookies. To read the file I installed sqlite database browser. I have successfully read all values except encrypted_value, because it is encrypted.
How do I read encrypted_value? Which encryption scheme is used and what is used as a key?

Related

How to match the cookie from request header to file

I have a local ASP.NET app using Forms authentication.
I'd like to know where this cookie is coming from:
I looked in C:\Users\<username>\AppData\Local\Google\Chrome\User Data\Default but have no idea how to work out which file the cookie is stored in.
How can I find out what file the cookie is stored in?
On Windows, Google Chrome stores cookies in:
C:\Users\Your User Name\AppData\Local\Google\Chrome\User Data\Default\Cookies
This is a sqlite database
See:
Where does Chrome store cookies?
and
Encrypted cookies in Chrome

Create OpenVPN file with L2TP/IPSEC credentials

I created a VPN from my windows server and I use it with L2TP credentials access (host, preshared key, login and password).
I downloaded a portable format of OpenVPN client for windows to put in USB key. The application can auto start with ovpn file but I don't known how to make this file. After some search I found the official documentation but there is a lot of arguments and I don't know which ones to choose.
https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage
Would someone here have already created a file for L2TP / IPSEC and could share an example?
Thanks

How to access system resources in Chrome Extensions

I am developing a chrome extension which needs to fetch some configuration from a system file... Earlier chrome provided NPAPI plug-ins, which could access any system resource (win registry, file system, IPC calls etc...)
However knowing that NPAPI will be discontinued soon, i am looking for alternatives.. one of the ways to build a plug-in is using Pepper clients, but pepper clients read/write only to chrome local storage.. which looks like a more data version of cookies...
So is there any other alternative to access system resources (like registry, files etc) in chrome extensions now??
The suggested alternative to NPAPI for many cases is "Native Messaging", where you provide an installer to users which adds binary code that chrome can communicate with via message passing. See http://developer.chrome.com/extensions/messaging.html#native-messaging.
For file access, in packaged apps there is the fileSystem API that lets you get access to the actual (non-sandboxed) filesystem. See http://developer.chrome.com/apps/fileSystem.html.

Does the storage limit (on IndexedDB or localStorage) apply for local apps running off the computer?

If I write a web app that will run in Chrome or Firefox and uses IndexedDB (or localStorage), but it's not hosted anywhere and instead is run by the user double-clicking a local ".html" file, will the limits on storage size still apply?
I'm referring to this:
https://developers.google.com/chrome/whitepapers/storage#unlimited
[Unlimited Storage is] unique to Chrome extensions as well as hosted and installed web apps.
If it is not hosted, indexeddb won't work. The indexeddb is origin dependend, meaning it needs to have an address. Local file system doesn't meet that requirement.
Webapps are a different story, but these apps need to be installed and run inside a sandbox.

MySQL and data file encryption

Is there a way to encrypt the data file that mysql uses? I have a mysql server on an open machine, and I would like to encrypt the data file so even if someone copies the data files, they cannot read the data.
Thanks
To anyone researching a transparent MySQL encryption solution for Linux, there's a relatively new product on the block that we've been working with:
http://www.gazzang.com/
I am not affiliated with Gazzang... just a happy customer.
I am not sure what do you mean when you say that your machine is open. If people have access to the console, or to your account it is much harder of a task to encrypt the file.
Did you look at Truecrypt? It works for most popular operating systems and allows to create a virtual encrypted partition, lock down a hard drive partition,an external drive or a usb device.
MySQL doesn't support data file encryption natively. There are 3rd products out there such as:
http://www.vormetric.com/products/vormetric_database_encryption_expert.html
There's a 'white paper' on the topic here:
http://www.vormetric.com/documents/FINALPart2DatabaseEncryptionCoreGuardvsColumnLevelWhitePaper7.pdf
To be honest, if the database content has any commercial value or contains personal data about individuals, you should really control who has access to the datafiles (whether encrypted or not). In the UK, leaving such data files open to casual passers-by, would be a data protection no no.
You can use an encrypted filesystem, like the native one for NTFS on Windows or one of the various options for linux. In addition you can store the data encrypted.
If you are using windows EFS and starting MySQL as a service, you will need to do the following:
go to Services and find the MySQL service
stop the service
right-click -> properties -> LogON TAB
check "This account"
fill your windows account name eg. ".\username"
provide your password
start the service
The MySQL service should now start without errors.
To use the windows EFS encryption:
http://windows.microsoft.com/en-us/windows/encrypt-decrypt-folder-file#1TC=windows-7
Read more obout it:
http://www.petri.co.il/how_does_efs_work.htm#
!!! Don't forget to export the certificate !!!
you could encrypt the data within mysql using the built in encryption functionality.
as for the files, any file solution should work fine.