Encode to base6
encode: function ( input, bMode )
Encode a text to utf8
encode: function( s )
Return ‘encrypt-ok’ in ‘result’ (or ‘encrypt-err’ is there is a problem) if makeing a ecnrypted text was successfull Return in ‘text’ the encrypted text
encrypt: function ( event )
Convert the text, in unicode, into an string in the specified chaset.
EnigConvertFromUnicode:function ( text, charset )
Convert the gpg --with-collums text (who are strangly encoded) into a uniform Unicode string.
EnigConvertGpgToUnicode:function ( text )
Convert the text, in the specified chaset, into an Unicode string.
EnigConvertToUnicode:function ( text, charset )
This erase the saved password :function (it’s for exemple when a sign failled)
eraseSavedPassword:function ()
Return true if a file exist
fileExist:function ( path )
Open the file selected and return the choosen file.
function fileSelector()
This function filter the key list, based on the current value of search-textbox.
function filter()
Get the interal id of a mail based on this mail id of the page (Used by getMimeMailContens).
foundTheGoodId: function( id )
This is just a random string generator.
generate_random_token: function( e )
Generate a new key
generateKey: function( silent, name, email, comment, password1, password2, keyneverexpire, keyexpirevalue, keyexpiretype, keylength, keytype )
Load the window to create a new ey
function genKey()
Generate and random string between 64 and 128 charactes, probably unique.
genreate_api_key:function ()
Return current selection.
get: function()
Return the list of access
getAccessList: function()
getBaseArugments: function ( fromGpgAuth )
Get the content of a binary file
getBinContent:function ( aURL, maxData )
Get the content of a resource form anywhere (like chrome://)
getContent:function ( aURL )
Return the node with data attributes for return
getDataNode: function( d )
Return the option to set diegest algo to use for signs hashs
getDiegestAlgo: function ()
Get the current domain for the page, or the webpage if we’re in local (file://)
getDomain: function( url )
Return environement parameters
getEnv: function()
Return the extention of a file
getFileExtention:function ( filename )
find a select in a frame
getFrame: function( frames )
Get the content of a file
getFromFile:function ( filename, charset )
Return the custom arguement the user want to add.
getGPGBonusCommand: function()
Return the command to execute GnuPG
getGPGCommand: function ()
Return a arguement to add a gnupg comment.
getGPGCommentArgument: function()
Return a arguement to force gnupg to use not trusted keys.
getGPGTrustArgument: function ( fromGpgAuth, fromDTA )
This function have to be documented.
function getIgnored_servers( parent )
Return the current key server
getKeyServer:function ()
Retrun the content of a mail
getMailContent: function( i )
Retrun the content of a mail, need the div object with the mail
getMailContent: function( i, doc )
Return the mime source of a mail
getMimeMailContens: function( id )
Return the mime source of a mail
getMimeMailContens: function( id, doc )
Show the generic dialog to get a password.
getPassword:function ( question, save_password, domain, nosavecheckbox )
This uses getPassword:function () to get a password for a private key.
getPrivateKeyPassword:function ( useSavedPassword / * default = true */, domain / * default = false*/, message / * default = false*/, nosavecheckbox )
Return the option to set the proxy for keyservers
getProxyInformation: function ()
Return the node with data attributes for return
getReturnDataNode: function( d )
Return the saved password
getsavedPassword:function ()
getSavedPassword:function ()
Return the current selected text of the editor.
function getSelectedText()
who return a private key for the user :function (the default or the one selected in the list) null is returned if no key is selected.
getSelfKey:function ( autoSelectPrivate )
Return the iframe used to compose a mail
getTheIframe: function( dDocument, boutonxboxnode )
Return the textarea used to compose a mail
getTheTextarea: function( dDocument, boutonxboxnode )
Get the path of a tmp file.
getTmpDir:function ()
Get an unique temporary file name.
getTmpFile:function ( permission /* optional * /, suffix_file )
Return the To, CC and BCC filds’ value of a mail in composition.
getToCcBccMail: function( dDocument, idMail )
Return the To, CC and BCC filds’ value of a mail in composition.
getToCcBccMail: function( dDocument, boutonxboxnode, onlyto, onlycc, onlybcc )
Return the content of a mail in composition (his selection if something is selected)
getWriteMailContent: function( dDocument, idMail )
Return the content of a mail in composition (his selection if something is selected)
getWriteMailContent: function( dDocument, boutonxboxnode, betterTextOnly, forMime )
Return the content of a mail in composition (his selection if something is selected)
getWriteMailContentForDirectSend: function( dDocument, boutonxboxnode )
This fuction approximates gmail’s line-wrapping rules, so that a message can be wrapped before it’s signed, instead of after, which would break the signature.
gmailWrapping:function ( text )
This function return a basic object, who represent a PGP key
FireGPG.GPGKey = function()
This function return a basic object, with variable to return informations about a FireGPG’s operation
FireGPG.GPGReturn = function()
This function build a secure iframe for a PGP’s block, and add listeners for actions on this block
FireGPG.Inline.HandleBlock = function( document, range, blockType )
This function parse a page to find PGP’s block.
FireGPG.Inline.HandlePage = function( document )
Return ‘firegpg-ok’ in ‘result’ (useful to test firegpg’s api presence)
hello: function ( event )
Encode special chars (&, <, > et “) to they html values.
htmlEncode:function ( s )