Actionscript 3 :: Crypto Say "Invalid Padding Value"?
Sep 1, 2010
What is the cause of the error "Invalid padding value" in as3crypto?
Error: PKCS#5:unpad: Invalid padding value. expected [153], found [25]
at com.hurlant.crypto.symmetric::PKCS5/unpad()
at com.hurlant.crypto.symmetric::CTRMode/decrypt()[code].........
I'm kind of new to ActionScript 3 at the moment and been trying to use the as3crypto library to encrypt some data with the blowfish algorithm before submitting it to the server for processing. I know you can use https, but most browsers still display the outbound data making it very easy for a user to fake a request. That's why I want to let the user see the page request, but not be able to read the data without decrypting.
Unfortunately for me the deocumentation on the as3crypto library is pretty much non existent aside from comments in the code. I've set up the flash side of things with a couple static functions to "implement" the as3crypto blowfish encryption and they work fine for encrypting/decrypting within flash only. The problem comes when I try to use the key to decrypt in PHP using the mcrypt library. The output I get is not the original code and I've spent a couple days trying to figure out why to no avail.elow is the code and explanations. For purposes of this example, the key used was 'mykey' (without the quotes) and the encoded data was 'Hello World' (again without the quotes).
I am using Flash CS4 at work: newly created type sits flush (top edge) within the text box. If I take the same file home and open in my newly purchased Flash CS4, the text now shows up with 10 or so pixels between the top of the letters and the top edge of the text box (like padding in CSS objects). This is a problem because it means all my text is now positioned lower on the stage than I intended and I can't take projects to and from work and home with any consistency. This is the same font, same file, same program version, which would suggest a preferences setting, but I can't find anywhere to modify text box appearance.
Is there a way to add padding between elements in a TileList .
I've passed deadline with a big project , it's all done , but he changed his mind and demands padding. And doesn't want without, i don't have time to make a new component
I am trying to remove all the padding from a Label contained in an HBox. I set paddingTop and paddingBottom to 0 in both the Label and HBox but there is still quite a bit of padding. I also tried setting verticalGap to 0 on HBox. If I just have a checkbox in the HBox the padding is removed fine.
I have a textinput component on my stage with an instance name of "myTxt" I would like to add some left padding to the contents of this textfield. I've tried:
myTxt.setStyle("textPadding", 5); But it adds top (and I assume bottom and right) padding in addition to the left padding. What is the best way to simply add left padding to the textfield's contents?
An empty movieClip container will dynamically update it's width and height depending on the sum of it's child objects dimensions. Is there a way to add padding to this value?For example, say you have 10 child displayObjects within a movieclip and all together their width adds up to 100px. Therefore the parent clip's width is 100. Is there anyway to add say 2px padding around these child clips to make the parent clip's width 104? The basic goal here would be to set the parent's width independently and unrelated to it's contents dimensions.
i have a mask which is over some thumbnails. i have given that mask the value ofStage.widthi.e mask_mc._width = Stage.width /1;however i would like the mask to e slightly padded left and right so the mask doesnt go edge to edge of the screen any ideas on how i can do this AS2
When dealing with TextFields, Flash always adds some sort of margin/padding around the outside of your TextField, so that if you set the X and Y of your TextField to 0, then your text would still sit about +4 pixels in.
If you create a TextField and set 'border=true', you will see what i mean - the border is drawn right on the edge of the TextField, but the actual text itself sits within a padding of about 4 pixels.
Is there any way at all to get the text of a TextField to sit hard-up against the border?
i, am building an portfolio site and i have come a long way (still a beginner) but now i found an problem. After i load xml file for paths to portfolio assets i load actual jpg's and/or swf's. But i am stuck since i do not understand how to implement padding so thumbs will be spaced evenly.[code]but than how to position first thumb?
I am working on a time display that takes a time reference from a video. What is the best way to pad the numbers so they show correctly as 00:00, 01:23, etc.Would like to stay away from just padding a string "0" in front, so I can test the var for proper time and use it elsewhere. Has anyone already done this with some code already floating around ?
I'm trying to apply a padding to the top of my TextField instance in my Flash application, much like you would using CSS.
I haven't found any way to do this. You'd expect it to be a part of the TextFormat or StyleSheet classes, but it's in neither. I sort of found a workaround by adding htmlText to the top of the TextField with <br /><br /> in it, but adding entire lines of white space to the top isn't desirable.
I have a Spark TextArea with a SpanElement inside. This element has the backgroundColor property set, but I would like to have the background a bit taller because it looks a bit weird at the top like this.[URL]..
I already tried to adjust lineHeight and paddingTop for the SpanElement, but no luck.
I made a quick search in Google and I couldnt find what I need, basically, I want to set a padding in my combobox component, so the entire combobox (not the items inside) is a little separated from the previous component.
The combobox is contained inside a VBox container, and above there is a label. If I use the padding property, what it does is to decrease the Y position of the text inside, but the component doesn't move at all.
I am using css on flash. Is it possible for me to set different padding for header and paragraph using css. I tried this on external loaded css file, but does not work
i created my own Button which simply extends from Sprite.Its able to show 3 different text fading in and out using a timer.In my draw function i first draw a rectangle with the Sprites graphics object representing the background of the button.I added a function to set the button width. This property is used to draw the rectangle. I know that the sprites's size is updated after the rectangle drawing. But for some reason the sprite's width is always more than what i have set via my "setButtonWidth" function.Now i have a simple sprite acting as a button having a graphics.drawRectangle part drawing a simple rect. with lets say 500px width. But when i trace the width of that button it is always about 10% more. Where are these 10% coming from?I read about calling validateNow(). But this is only for Labels, or Checkboxes. For some reason i cannot access the library for Label. This must work somehow with TextFields. But how?
// this function is part of MyButtonClass.as file function drawButton() {
I have one event handler for several object's events. I would like to pass a value through to the function from the event listener:
PHP Code:
function chkEmpty(event:Event){ if(event.currentTarget.text==""){ thisIsBitIWantToBeAbleChange.text = "You haven't entered anything in the box, please try again"
[Code].....
Could I give the event.currentTarget a value that I could test for? So if the value is 1, I effect output1_txt, if 2, output2_txt, etc etc. If so, are there customisable values that I could use that wouldn't do anything to the display object,?
How can I get a consistent value from the top margin/padding of a TextField to the top of the actual text.According to the docs (link below), the text field has a 2px gutter on all sides. But there seems to be another gutter that seems to increase / decrease with the size of the text.Using times new roman for a default font size, I can get the baseline of some random text using what we know: I know that there is a 2px gutter all the way around the text field and we can get the ascent through textfield.getLineMetrics(0).ascent. If I draw a line at that position I'll get a line about 2 px below the actual text. Works fine.Now if I want to draw another line at the TOP of the text it's a guessing game. At 36pt text it's 8px from the top of the textfield. At 72pt text it's more like 12px from the top, and at 144pt text it's more like 20px from the top.URL...
I'm made an Item class which extends the Sprite class, the Item class basically has a few checkmarks & labels at the moment.
Then what I try to do is run through a for loop of items and create Item classes that I want to place one after each other on the y-axis, so I'm reading the Item.height property to find the y of the next Item in the list.
The problem is for some reason there is always an extra 75 pixels added to the Sprite height at the bottom, no matter how many checkmarks and labels are in each Item class ( varying the height of the Item class ).
Any idea why this is being added and how it can be removed?I'm having trouble figuring this out, I tried dynamicly calculating and setting the Item.height property but when I do that the Sprite is simply cropped.
I've registered for the apple developer program, and now I'm trying to get my app on iPhone. Everything is going fine until I install my app, then iTunes says: The app "App Name" was not installed on the iPod "iPod Name" because the signer is not valid. I have no idea why. I made my signature using the OpenSSL for windows, and i have downloaded the visual c++ redistributables 2008, and set the RANDFILE to .rnd, and i did it in Firefox.
I had installed a FMS 3.5.6R6003 in a Cent.O.S linux with an Edge configuration... and i have found the following error in the /var/log/messages...!!!
Configuration[19756]: Invalid value set for configuration key : Application/Process/Distribute = Instances, using default to be compatible with inst..Configuration[19756]: Invalid value set for configuration key : Application/Process/Scope.numprocs = 5, using 1, to prevent app inst getting split among multiple processes.
But, even with this warning, the FMS is running apparently normal...
I have this particular script that runs so that the flash elements don't show up on top of my slide out navigation. This redraws that flash element with wmode as opaque and so it shows up under the navigation. Works perfectly with Chrome and FireFox but not with IE. In IE I get an Invalid Argument in jquery.min.js code 0 Line 103 char 460. Can anyone help me as to why? If I comment out the second line of code inside the function then there is no error, but then doesn't work in FireFox.[code]